//
// Created by lymk on 2021/8/5.
//

#include "InputManager.h"

void InputManager::SetKeyBoardState(unsigned short keyID, bool state) {
    if(keyID >=0 && keyID <=165)
        KeyBoardState[keyID] = state;
}

void InputManager::SetMouseState(unsigned short keyID, bool state) {
    if(keyID >= 0 && keyID <= 2){
        MouseState[keyID] = state;
    }

}

bool InputManager::GetKeyBoardState(unsigned short keyID) {
    return KeyBoardState[keyID];
}

bool InputManager::GetMouseState(unsigned short keyID) {
    return MouseState[keyID];
}
